<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Hello</title>
</head>
<body>

<a th:if="${flag == 'yes'}" th:href="@{http://www.ktjiao.com/}">ktjiao</a>
<br>
<!-- tu:unless与tu:if恰好相反，只有表达式中的条件不成立，才会显示其内容-->
<a th:unless="${flag == 'no'}" th:href="@{http://www.czkt.com/}">czkt</a>
</body>
</html>